package com.cdtye.shuoh.mapper.rule;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdtye.shuoh.domain.rule.entity.Rule;
import com.cdtye.shuoh.domain.rule.vo.RuleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 规则信息表 Mapper 接口
 * @author 
 * @date 2023-03-03
 */
@Repository
public interface RuleMapper extends BaseMapper<Rule> {

    /**
     * 分页查询,自定义sql语句
     * @param page
     * @param vo
     * @return
     */
    IPage<Rule> pageList(Page page, @Param("vo") RuleVo vo);

    /**
     * 获取列表
     * @param vo
     * @return
     */
    List<Rule> list(@Param("vo") RuleVo vo);

}
